package cn.topcodes.tcsf.admin.domain.form;

import cn.topcodes.tcsf.admin.commons.domain.Idable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
public class SysUrlForm implements Idable {
	
	private Long id;

	@NotBlank(message = "URL不能为空")
	@Length(min = 1,max = 1024,message = "URL长度最大为1024个字符")
	private String url;

	@Length(min = 0,max = 100,message = "描述长度最大为100个字符")
    private String description;

}
